// house_pkg/pages/building/index.ts
Page({

  /**
   * 页面的初始数据
   */
  data: {
    point:'',
    building:1
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad({point}) {
     console.log('point',point);
     this.setData({point,building:this.getRandom(1,10)})
  },

  getRandom(min, max) {
    return Math.floor(Math.random() * (max - min + 1)) + min
  }
})